package com.axjy.item.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class ItemDetailVo implements Serializable {
    private Integer id;//整形 分类主键
    private String itemName;//字符串 节目名称
    private Integer areaId;//整形  城市
    private String areaName;//字符串 城市名称
    private String imgUrl;//字符串 节目宣传图片
    private String address;//字符串   节目所在地址

    //itemDetail特有的
    private String abstractMessage;//摘要
    private Integer itemType1Id;//整形
    private String itemType1Name;
    private Integer itemType2Id;
    private String itemType2Name;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm")
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime endTime;
    private Integer state;//状态
    private String baseDescription;//描述
    private String projectDescription;//项目描述
    private String reminderDescription;
    private Integer cinemaId;
    private String latitude;
    private String longitude;
    private Double avgScore;
    private Integer commentCount;
}
